import request from '@/utils/request'

// 查询法院公告列表
export function listCompanyCourt(query) {
  return request({
    url: '/court/companyCourt/list',
    method: 'get',
    params: query
  })
}

// 查询法院公告详细
export function getCompanyCourt(id) {
  return request({
    url: '/court/companyCourt/' + id,
    method: 'get'
  })
}

// 保存法院公告
export function saveCompanyCourt(data) {
  return request({
    url: '/court/companyCourt/save',
    method: 'post',
    data: data
  })
}

// 删除法院公告
export function delCompanyCourt(id) {
  return request({
    url: '/court/companyCourt/' + id,
    method: 'delete'
  })
}

// 导出法院公告
export function exportCompanyCourt(query) {
  return request({
    url: '/court/companyCourt/export',
    method: 'get',
    params: query
  })
}
